<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 引入 Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>添加部门</title>
<style>
/*header的样式*/
.header{
	height:50dp;
	background:#ddd;
	
}
</style>
</head>

<body>
<div class="header">
<h1>某高校后勤管理</h1>
</div>
<div class="container">
<form class="form-horizontal" style="width:700px">
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">角色名称：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="name" value="角色1" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="province">权限：</label>
          <div class="col-sm-10">
            <select class="form-control">
            <option  selected="selected">权限1</option>
            <option>权限2</option>
            <option >权限3</option>
            <option>权限4</option>
            </select>
          </div>
        </div>
        
        
        <div class="form-group" style="margin:0 auto;display:block; width:100px">
        <button  class="btn btn-default"  onclick="addCharacter">保存</button>
        </div>
      </form>
      </div>
</body>
<script>
function addCharacter()
{
	//获取当前修改的信息
	var charac_name=$("#charac_name_").val();
	var charac_athority=$("#select_box_").val();
	$.post("/ulms_project/character/updataCharac",{charac_name:charac_name,charac_athority:charac_athority},function(data)
	{
			alert("添加角色成功");
	})
}
</script>
</html>